﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Rance
{
    /// <summary>
    /// Win_Fight_SkillSelect.xaml 的交互逻辑
    /// </summary>
    public partial class Win_Fight_SkillSelect : Window
    {
        public UI技能选择 技能选择;

        public Win_Fight_SkillSelect(UI技能选择 技能选择)
        {
            InitializeComponent();
            this.技能选择 = 技能选择;
            this.cmbSelect.ItemsSource = 技能选择.SelectList;
            this.DataContext = 技能选择;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            if (技能选择.Select == null || 技能选择.Select == "")
            {
                MessageBox.Show("请选择!");
                return;
            }

            this.Close();
        }
    }
}
